﻿using BLL.Core;
using Castle.Windsor;

namespace CW.Shell
{
    public class Program
    {
        static void Main()
        {
            var container = new WindsorContainer();
            container.Install(new Installer());

            var srv1 = container.Resolve<ICoreService>();
            var srv2 = container.Resolve<ICoreService>();

            var g1 = srv1.GetGUID();
            var g2 = srv2.GetGUID();
            System.Diagnostics.Contracts.Contract.Requires(g1 == g2);
            System.Diagnostics.Contracts.Contract.Requires(srv1.Equals(srv2));

            container.Dispose();
        }
    }
}
